﻿@inject IWorkContextAccessor workContextAccessor

@{
    var supportRtl = workContextAccessor.WorkContext.WorkingLanguage.Rtl;

    <script asp-location="Head" src="/bundles/app.runtime.bundle.js"></script>
    <script asp-location="Head" src="/bundles/chunk-vendors.runtime.bundle.js"></script>
    <link asp-src="/bundles/libs.css" rel="stylesheet">

    <link rel="stylesheet" type="text/css" asp-src="/assets/custom/style.css">

    <environment include="Development">
        @if (supportRtl)
        {
            <link rel="stylesheet" type="text/css" asp-src="/theme/css/common/common.rtl.css">
            <link rel="stylesheet" type="text/css" asp-src="/theme/css/header/header.rtl.css">
            <link rel="stylesheet" type="text/css" asp-src="/theme/css/catalog/catalog.rtl.css">
            <link rel="stylesheet" type="text/css" asp-src="/theme/css/product/product.rtl.css">
            <link rel="stylesheet" type="text/css" asp-src="/theme/css/customer/customer.rtl.css">
            <link rel="stylesheet" type="text/css" asp-src="/theme/css/cart/cart.rtl.css">
        }
        else
        {
            <link rel="stylesheet" type="text/css" asp-src="/theme/css/common/common.css">
            <link rel="stylesheet" type="text/css" asp-src="/theme/css/header/header.css">
            <link rel="stylesheet" type="text/css" asp-src="/theme/css/catalog/catalog.css">
            <link rel="stylesheet" type="text/css" asp-src="/theme/css/product/product.css">
            <link rel="stylesheet" type="text/css" asp-src="/theme/css/customer/customer.css">
            <link rel="stylesheet" type="text/css" asp-src="/theme/css/cart/cart.css">
        }
    </environment>
    <environment include="Production">
        @if (supportRtl)
        {
            <link rel="stylesheet" type="text/css" asp-src="/bundles/style.rtl.min.css">
        }
        else
        {
            <link rel="stylesheet" type="text/css" asp-src="/bundles/style.min.css">
        }
    </environment>

    <script asp-location="Footer" asp-src="/theme/script/public.common.js" asp-order="201"></script>
    <script asp-location="Footer" asp-src="/theme/script/public.axios.js" asp-order="202"></script>
    <script asp-location="Footer" asp-src="/theme/script/app.js" asp-order="900"></script>
    <script asp-location="Footer" asp-src="/assets/custom/script.js" asp-order="901"></script>
}